//封装本地存储数据与读取数据方法
//存储数据
export const SET_TOKEN = (token:string) => {
    localStorage.setItem("TOKEN", token);
}
//获取数据
export const GET_TOKEN = () => {
    return localStorage.getItem("TOKEN");
}
//删除数据
export const REMOVE_TOKEN = () => {
    localStorage.removeItem("TOKEN");
}

//存储数据
export const SET_ORGINTOKEN = (token:string) => {
    localStorage.setItem("ORGINTOKEN", token);
}
//获取数据
export const GET_ORGINTOKEN = () => {
    return localStorage.getItem("ORGINTOKEN");
}
//删除数据
export const REMOVE_ORGINTOKEN = () => {
    localStorage.removeItem("ORGINTOKEN");
}
//是否模拟登录
export const SET_ISMOCK = (isMock:string) => {
    localStorage.setItem("ISMOCK", isMock);
}
//获取数据
export const GET_ISMOCK = () => {
    return localStorage.getItem("ISMOCK");
}
//删除数据
export const REMOVE_ISMOCK = () => {
    localStorage.removeItem("ISMOCK");
}